﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.Serialization;
using System.Text;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.BLL
{
    public partial class CMSConfig
    {
        [Serializable, DataContract]
        public class CounterConfig
        {
            public CounterConfig()
            {
                OnlineActiveTime = 20;
                FlashHeight = 33;
                FlashWidth = 88;
                Site = string.Empty;
            }

            /// <summary>
            /// 被统计的网站
            /// </summary>
            [DisplayName("被统计的网站"), DataMember]
            public string Site { get; set; }


            /// <summary>
            /// 是否统计在线人数
            /// </summary>
            [DisplayName("是否统计在线人数"), DataMember]
            public bool TotalOnline { get; set; }

            /// <summary>
            /// Flash宽度
            /// </summary>
            [DisplayName("Flash宽度"), DataMember]
            public int FlashWidth { get; set; }

            /// <summary>
            /// Flash高度
            /// </summary>
            [DisplayName("Flash高度"), DataMember]
            public int FlashHeight { get; set; }

            /// <summary>
            /// 是否限制IP
            /// </summary>
            [DisplayName("是否限制IP"), DataMember]
            public bool IPCheck { get; set; }


            /// <summary>
            /// 在线有效时间（精度分钟）
            /// </summary>
            [DisplayName("在线有效时间（精度分钟）"), DataMember]
            public int OnlineActiveTime { get; set; }
        }
    }
}